#ifndef __COUNTER_H__
#define __COUNTER_H__

#include "util/Pool.h"

class Counter {
    
 public:
    NEW_DELETE_OPERATORS_H(Counter,NoSuper);
    Counter (const char* _name);
    ~Counter ();
    
    void increment (uint=1);
    uint64 peek ();
    void clear ();
    
 protected:
    uint64 value;
    const char* outputName;
    
    friend class StatisticsCollection;
};

#endif
